Imports Clo = Enhancements.Core.Logging
Imports Ref = System.Reflection
Imports Sys = System

Namespace Enhancements.Basic
    ''' <summary>The exception that is thrown when a value is not null.</summary>
    <Serializable(), DebuggerStepThrough()> _
    Public NotInheritable Class IsNullNotException
        Inherits AssertException

        Private Sub New(ByVal _objectName As System.String, ByVal _object As Sys.Object)
            MyBase.New(_objectName)
            [Object] = _object
        End Sub

        Private __Object As System.Object = Nothing
        ''' <summary>Gets the value of the object that caused this exception.</summary>
        Public Property [Object]() As System.Object
            Get
                Return __Object
            End Get
            Private Set(ByVal _value As System.Object)
                __Object = _value
            End Set
        End Property

        ''' <summary>Throws an exception.</summary>
        ''' <param name="_objectName">Name of the object that is causing the exception.</param>
        ''' <param name="_object">Object that is causing the exception.</param>
        ''' <exception cref="IsNullNotException"> </exception>
        Friend Shared Sub ___Throw(ByVal _objectName As System.String, ByVal _object As System.Object)
            Dim _exception As IsNullNotException = New IsNullNotException(_objectName, _object)

            Throw _exception
        End Sub

    End Class
End Namespace
